]> dgit.raspbian.org Git - gnome-shell.git/commit
layout: Range-check index before array lookup
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 13 Jun 2017 03:39:06 +0000 (05:39 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 13 Jul 2017 15:23:54 +0000 (17:23 +0200)
commit1ba014d9dba9b1884d7c889fb726eeeca6ff0634
tree82fd3d5dba2295acf87bc12d6f628bfa7e15f3e8
parentf33560f0144f843e0ba0e51f55b26a8d2861fdf9
layout: Range-check index before array lookup

findMonitorForActor() may be called before the layoutManager gets
to initialize monitors, so make sure the monitor index is in range
to avoid a warning.

https://bugzilla.gnome.org/show_bug.cgi?id=781471
js/ui/layout.js